package com.fenqile.pop.trade.param;

import com.fenqile.pop.BusinessParameter;
import com.fenqile.pop.trade.TradeInfo;
import com.fenqile.pop.trade.result.TradeDetailResult;
import com.fenqile.pop.utility.FieldOpt;

/**
 * 获取单个订单详情 {@value #API_METHOD}
 * 
 * @see TradeDetailResult 
 * 
 * @author Coby [cobylin@live.com] 2017
 */
public class TradeDetailGetParameter extends BusinessParameter<TradeDetailResult> {
	public static final String API_METHOD = "fenqile.trade.detail.get";
	
	/**
	 * 订单号
	 * 必须
	 */
	public String order_id;
	
	/**
	 * 结果集返回字段列表，多个字段以半角逗号分隔，可选值为响应({@link TradeDetailResult})说明中的所有一级参数
	 * 必须
	 */
	public FieldOpt<TradeInfo> fields = new FieldOpt<>(TradeInfo.class);

	@Override
	public String getApiMethod() {
		return API_METHOD;
	}

}
